package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ClassName CouponFeignService
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/6/9
 * @Version 1.0
 */
@FeignClient("gulimall-coupon")   //表名该接口声明式远程调用接口，需要指定服务名
public interface CouponFeignService {
    @GetMapping("coupon/coupon/getCoupon")   //要调用的接口的完整路径
    R getMemberCoupons();    //该方法的编写是参照要调用的接口方法签名
}
